<template>
    <div>
        <h3>开奖结果</h3>
        <div class="clearfix">
            <div class="fl">游戏类型： 
                <select @change="selchange" style="height: 26px;">
                    <option v-for="(item,index) in gamelist" :key="index" :value="item.value" :selected="item.name == game">{{item.name}}</option>
                </select>
            </div>
            <div class="fl" style="margin-left: 15px;" v-if="game != '六合彩'">日期：<input type="date" v-model="filterdate" @change="changeDate" pattern='yyyy-MM-dd' /></div>
        </div>
        
        <!-- PC蛋蛋 -->
        <table class="wq text-center" border="0" cellpadding="0" cellspacing="1" v-if="game == 'PC蛋蛋'">
            <tr class="t_list_caption">
                <td>期数</td>
                <td>开奖时间</td>
                <td colspan="3">开出号码</td>
                <td>总和</td>
                <td>大小</td>
                <td>单双</td>
                <td>极值</td>
                <td>色波</td>
            </tr>
            <tr class="t_td_text" v-for="(item,index) in infoData" :key="index">
                <td>{{item.period}}</td>
                <td>{{item.close}}</td>
                <td v-if="item.results.length == 0" colspan="8">暂未开奖</td>
                <td v-if="item.results.length != 0" v-for="(ball,index) in item.balls" :key="index"><span :class="(ball > 9 ? 'No_gd' : 'No_gd0') + ball"></span></td>
                <td v-if="item.results.length != 0">{{item.results['和:特码']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['和:大小'] == '大' ? 'color: red;' : ''">{{item.results['和:大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['和:单双'] == '双' ? 'color: red;' : ''">{{item.results['和:单双']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['和:半波'] == '极大' ? 'color: red;' : item.results['和:半波'] == '极小' ? 'color: #2836f4;' : ''">{{item.results['和:半波'] ? item.results['和:半波'] : '--'}}</td>
                <td v-if="item.results.length != 0" :style="item.results['和:色波'] == '红波' ? 'color: red;' : item.results['和:色波'] == '蓝波' ? 'color: #2836f4;' : item.results['和:色波'] == '绿波' ? 'color: #22bd1e;' : ''">{{item.results['和:色波'] ? item.results['和:色波'] : '--'}}</td>
            </tr>
        </table>

        <!-- 六合彩 -->
        <table class="wq text-center" border="0" cellpadding="0" cellspacing="1" v-if="game == '六合彩'">
            <tr class="t_list_caption">
                <td rowspan="2">期数</td>
                <td rowspan="2">开奖时间</td>
                <td colspan="7">开出号码</td>
                <td colspan="4">总和</td>
                <td colspan="5">特码</td>
            </tr>
            <tr class="t_list_caption">
                <td>一</td>
                <td>二</td>
                <td>三</td>
                <td>四</td>
                <td>五</td>
                <td>六</td>
                <td>特</td>
                <td>总数</td>
                <td>大小</td>
                <td>单双</td>
                <td>七色波</td>
                <td>大小</td>
                <td>单双</td>
                <td>合大小</td>
                <td>合单双</td>
                <td>尾大小</td>
            </tr>
            <tr class="t_td_text" v-for="(item,index) in infoData" :key="index" style="height: 47px;">
                <td>{{item.period}}</td>
                <td>{{item.close}}</td>
                <td v-if="item.results.length == 0" colspan="16">暂未开奖</td>
                <td v-if="item.results.length != 0" v-for="(result,ind) in item.balls" :key="ind"><span :class="rednumber.indexOf(result) != -1? 'redBalls': bluenumber.indexOf(result) != -1? 'blueBalls': 'greenBalls'">{{result}}</span><br/>{{item.results['七码:一肖'][ind]}}</td>
                <td v-if="item.results.length != 0">{{totalList[index]}}</td>
                <td v-if="item.results.length != 0" :style="item.results['总和:总和大小'] == '大' ? 'color: red;' : ''">{{item.results['总和:总和大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['总和:总和单双'] == '双' ? 'color: red;' : ''">{{item.results['总和:总和单双']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['七码:七色波'] == '红波' ? 'color: red;' : item.results['七码:七色波'] == '蓝波' ? 'color: #2836f4;' : item.results['七码:七色波'] == '绿波' ? 'color: #22bd1e;' : ''">{{item.results['七码:七色波'] ? item.results['七码:七色波'] : '--'}}</td>
                <td v-if="item.results.length != 0" :style="item.results['特码:大小'] == '大' ? 'color: red;' : 'color: #2836f4;'">{{item.results['特码:大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['特码:单双'] == '双' ? 'color: red;' : 'color: #2836f4;'">{{item.results['特码:单双']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['特码:合数大小'] == '大' ? 'color: red;' : 'color: #2836f4;'">{{item.results['特码:合数大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['特码:合数单双'] == '双' ? 'color: red;' : 'color: #2836f4;'">{{item.results['特码:合数单双']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['特码:尾数大小'] == '大' ? 'color: red;' : 'color: #2836f4;'">{{item.results['特码:尾数大小']}}</td>
            </tr>
        </table>

        <!-- 北京PK拾、幸运飞艇 -->
        <table class="wq text-center" border="0" cellpadding="0" cellspacing="1" v-if="game == '北京PK拾' || game == '幸运飞艇'">
            <tr class="t_list_caption">
                <td>期数</td>
                <td>开奖时间</td>
                <td colspan="10">开出号码</td>
                <td colspan="3">冠亚军和</td>
                <td colspan="5">1~5龙虎</td>
            </tr>
            <tr class="t_td_text" v-for="(item,index) in infoData" :key="index" style="height: 32px;">
                <td>{{item.period}}</td>
                <td>{{item.close}}</td>
                <td v-if="item.results.length == 0" colspan="18">暂未开奖</td>
                <td v-if="item.results.length != 0" v-for="(ball,index) in item.balls" :key="index"><span :class="(ball > 9 ? 'No_gd' : 'No_gd0') + ball"></span></td>
                <td v-if="item.results.length != 0">{{item.results['冠亚军和:冠亚军和值']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['冠亚军和:冠亚军和单双'] == '双' ? 'color: red;' : ''">{{item.results['冠亚军和:冠亚军和单双']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['冠亚军和:冠亚军和大小'] == '大' ? 'color: red;' : ''">{{item.results['冠亚军和:冠亚军和大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['冠军:龙虎'] == '龙' ? 'color: red;' : ''">{{item.results['冠军:龙虎']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['亚军:龙虎'] == '龙' ? 'color: red;' : ''">{{item.results['亚军:龙虎']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第三名:龙虎'] == '龙' ? 'color: red;' : ''">{{item.results['第三名:龙虎']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第四名:龙虎'] == '龙' ? 'color: red;' : ''">{{item.results['第四名:龙虎']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第五名:龙虎'] == '龙' ? 'color: red;' : ''">{{item.results['第五名:龙虎']}}</td>
            </tr>
        </table>

        <!-- 北京快乐8 -->
        <table class="wq text-center" border="0" cellpadding="0" cellspacing="1" v-if="game == '北京快乐8'">
            <tr class="t_list_caption">
                <td>期数</td>
                <td>开奖时间</td>
                <td width="275">开出号码</td>
                <td colspan="4">总和</td>
                <td colspan="2">比数量</td>
            </tr>
            <tr class="t_td_text" v-for="(item,index) in infoData" :key="index" style="height: 67px;">
                <td>{{item.period}}</td>
                <td>{{item.close}}</td>
                <td v-if="item.results.length == 0" colspan="7">暂未开奖</td>
                <td v-if="item.results.length != 0" style="padding: 5px 0px 0px;"><span v-for="(ball,index) in item.balls" :key="index" :class="(ball > 9 ? 'b' : 'b0') + ball"></span></td>
                <td v-if="item.results.length != 0">{{totalList[index]}}</td>
                <td v-if="item.results.length != 0" :style="item.results['总和:大小'] == '大' ? 'color: red;' : 'color: #2836f4;'">{{item.results['总和:大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['总和:单双'] == '双' ? 'color: red;' : 'color: #2836f4;'">{{item.results['总和:单双']}}</td>
                <td v-if="item.results.length != 0">{{item.results['总和:五行']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['个数:前后和'] == '前' ? 'color: red;' : item.results['个数:前后和'] == '后' ? 'color: #2836f4;':''">{{item.results['个数:前后和']}}<span v-if="item.results['个数:前后和'] != '和'" style="font-size: 12px;">(多)</span></td>
                <td v-if="item.results.length != 0" :style="item.results['个数:单双和'] == '龙' ? 'color: red;' : ''">{{item.results['个数:单双和']}}</td>
            </tr>
        </table>

        <!-- 天津时时彩、新疆时时彩、重庆时时彩 -->
        <table class="wq text-center" border="0" cellpadding="0" cellspacing="1" v-if="game == '天津时时彩' || game == '新疆时时彩' || game == '重庆时时彩'">
            <tr class="t_list_caption">
                <td>期数</td>
                <td>开奖时间</td>
                <td colspan="5">开出号码</td>
                <td colspan="3">总和</td>
                <td>龙虎</td>
                <td>前三</td>
                <td>中三</td>
                <td>后三</td>
            </tr>
            <tr class="t_td_text" v-for="(item,index) in infoData" :key="index" style="height: 35px;">
                <td>{{item.period}}</td>
                <td>{{item.close}}</td>
                <td v-if="item.results.length == 0" colspan="13">暂未开奖</td>
                <td v-if="item.results.length != 0" v-for="(ball,index) in item.balls" :key="index"><span :class="(ball > 9 ? 'No_gd' : 'No_gd0') + ball"></span></td>
                <td v-if="item.results.length != 0">{{totalList[index]}}</td>
                <td v-if="item.results.length != 0" :style="item.results['总和:总和大小'] == '大' ? 'color: red;' : ''">{{item.results['总和:总和大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['总和:总和单双'] == '双' ? 'color: red;' : ''">{{item.results['总和:总和单双']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['龙虎和:龙虎和'] == '龙' ? 'color: red;' : item.results['龙虎和:龙虎和'] == '虎' ? 'color: #2836f4;':''">{{item.results['龙虎和:龙虎和']}}</td>
                <td v-if="item.results.length != 0">{{item.results['前三:半顺'] ? '半顺' : item.results['前三:对子'] ? '对子' : item.results['前三:杂六'] ? '杂六' : item.results['前三:豹子'] ? '豹子' : item.results['前三:顺子'] ? '顺子' : '' }}</td>
                <td v-if="item.results.length != 0">{{item.results['中三:半顺'] ? '半顺' : item.results['中三:对子'] ? '对子' : item.results['中三:杂六'] ? '杂六' : item.results['中三:豹子'] ? '豹子' : item.results['中三:顺子'] ? '顺子' : '' }}</td>
                <td v-if="item.results.length != 0">{{item.results['后三:半顺'] ? '半顺' : item.results['后三:对子'] ? '对子' : item.results['后三:杂六'] ? '杂六' : item.results['后三:豹子'] ? '豹子' : item.results['后三:顺子'] ? '顺子' : '' }}</td>
            </tr>
        </table>

        <!-- 安徽快3、江苏快3 -->
        <table class="wq text-center" border="0" cellpadding="0" cellspacing="1" v-if="game == '安徽快3' || game == '江苏快3'">
            <tr class="t_list_caption">
                <td>期数</td>
                <td>开奖时间</td>
                <td colspan="3">开出号码</td>
                <td colspan="2">总和</td>
            </tr>
            <tr class="t_td_text" v-for="(item,index) in infoData" :key="index" style="height: 35px;">
                <td>{{item.period}}</td>
                <td>{{item.close}}</td>
                <td v-if="item.results.length == 0" colspan="5">暂未开奖</td>
                <td v-if="item.results.length != 0" v-for="(ball,index) in item.balls" :key="index"><span :class="'jsk' + ball"></span></td>
                <td v-if="item.results.length != 0">{{item.results['和数:点数']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['和数:大小'] == '大' ? 'color: red;' : ''">{{item.results['和数:大小'] ? item.results['和数:大小'] : '豹子'}}</td>
            </tr>
        </table>

        <!-- 山东11选5、广东11选5、江西11选5 -->
        <table class="wq text-center" border="0" cellpadding="0" cellspacing="1" v-if="game == '山东11选5' || game == '广东11选5' || game == '江西11选5'">
            <tr class="t_list_caption">
                <td>期数</td>
                <td>开奖时间</td>
                <td colspan="5">开出号码</td>
                <td colspan="4">总和</td>
                <td>龙虎</td>
                <td colspan="5">1~5大小</td>
                <td colspan="5">1~5单双</td>
            </tr>
            <tr class="t_td_text" v-for="(item,index) in infoData" :key="index" style="height: 35px;">
                <td>{{item.period}}</td>
                <td>{{item.close}}</td>
                <td v-if="item.results.length == 0" colspan="20">暂未开奖</td>
                <td v-if="item.results.length != 0" v-for="(ball,index) in item.balls" :key="index"><span :class="(ball > 9 ? 'No_gd' : 'No_gd0') + ball"></span></td>
                <td v-if="item.results.length != 0">{{totalList[index]}}</td>
                <td v-if="item.results.length != 0" :style="item.results['总和:总和大小'] == '大' ? 'color: red;' : ''">{{item.results['总和:总和大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['总和:总和单双'] == '双' ? 'color: red;' : ''">{{item.results['总和:总和单双']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['总和:总和尾大小'] == '大' ? 'color: red;' : ''">尾{{item.results['总和:总和尾大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第一球:龙虎'] == '龙' ? 'color: red;' : ''">{{item.results['第一球:龙虎']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第一球:大小'] == '大' ? 'color: red;' : item.results['第一球:大小'] == '小' ? 'color: #2836f4;' : ''">{{item.results['第一球:大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第二球:大小'] == '大' ? 'color: red;' : item.results['第二球:大小'] == '小' ? 'color: #2836f4;' : ''">{{item.results['第二球:大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第三球:大小'] == '大' ? 'color: red;' : item.results['第三球:大小'] == '小' ? 'color: #2836f4;' : ''">{{item.results['第三球:大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第四球:大小'] == '大' ? 'color: red;' : item.results['第四球:大小'] == '小' ? 'color: #2836f4;' : ''">{{item.results['第四球:大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第五球:大小'] == '大' ? 'color: red;' : item.results['第五球:大小'] == '小' ? 'color: #2836f4;' : ''">{{item.results['第五球:大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第一球:单双'] == '单' ? 'color: red;' : item.results['第一球:单双'] == '双' ? 'color: #2836f4;' : ''">{{item.results['第一球:单双']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第二球:单双'] == '单' ? 'color: red;' : item.results['第二球:单双'] == '双' ? 'color: #2836f4;' : ''">{{item.results['第二球:单双']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第三球:单双'] == '单' ? 'color: red;' : item.results['第三球:单双'] == '双' ? 'color: #2836f4;' : ''">{{item.results['第三球:单双']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第四球:单双'] == '单' ? 'color: red;' : item.results['第四球:单双'] == '双' ? 'color: #2836f4;' : ''">{{item.results['第四球:单双']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第五球:单双'] == '单' ? 'color: red;' : item.results['第五球:单双'] == '双' ? 'color: #2836f4;' : ''">{{item.results['第五球:单双']}}</td>
            </tr>
        </table>

        <!-- 广东快乐十分、重庆幸运农场 -->
        <table class="wq text-center" border="0" cellpadding="0" cellspacing="1" v-if="game == '广东快乐十分' || game == '重庆幸运农场'">
            <tr class="t_list_caption">
                <td>期数</td>
                <td>开奖时间</td>
                <td colspan="8">开出号码</td>
                <td colspan="4">总和</td>
                <td colspan="4">1~4龙虎</td>
            </tr>
            <tr class="t_td_text" v-for="(item,index) in infoData" :key="index" style="height: 35px;">
                <td>{{item.period}}</td>
                <td>{{item.close}}</td>
                <td v-if="item.results.length == 0" colspan="20">暂未开奖</td>
                <td v-if="item.results.length != 0" v-for="(ball,index) in item.balls" :key="index"><span :class="'No_gd' + ball"></span></td>
                <td v-if="item.results.length != 0">{{totalList[index]}}</td>
                <td v-if="item.results.length != 0" :style="item.results['总和:总和大小'] == '大' ? 'color: red;' : ''">{{item.results['总和:总和大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['总和:总和单双'] == '双' ? 'color: red;' : ''">{{item.results['总和:总和单双']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['总和:总和尾数大小'] == '大' ? 'color: red;' : ''">尾{{item.results['总和:总和尾数大小']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第一球:龙虎'] == '龙' ? 'color: red;' : ''">{{item.results['第一球:龙虎']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第二球:龙虎'] == '龙' ? 'color: red;' : ''">{{item.results['第二球:龙虎']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第三球:龙虎'] == '龙' ? 'color: red;' : ''">{{item.results['第三球:龙虎']}}</td>
                <td v-if="item.results.length != 0" :style="item.results['第四球:龙虎'] == '龙' ? 'color: red;' : ''">{{item.results['第四球:龙虎']}}</td>
            </tr>
        </table>
    </div>
</template>
<script>

    import axios from 'axios'
    import {lotterytype} from '../../../../assets/js/lotterytype.js'

    export default {
        name: "LotteryResults",
        props: {  //普通类型：String、Number、Boolean、Null    引用类型： Array、Object
            // openBet: {  //可下注
            //     type: Boolean,
            //     required: true
            // },
            // ninetime: {  //90s
            //     type: Boolean,
            //     required: true
            // },
        },
        data(){
            return{
                infoData: {},
                game: '',  //游戏
                gamelist: [
                    {name: 'PC蛋蛋' , value: 'PC蛋蛋'},
                    {name: '六合彩' , value: '六合彩'},
                    {name: '北京PK拾' , value: '北京PK拾'},
                    {name: '北京快乐8' , value: '北京快乐8'},
                    {name: '天津时时彩' , value: '天津时时彩'},
                    {name: '安徽快3' , value: '安徽快3'},
                    {name: '山东11选5' , value: '山东11选5'},
                    {name: '幸运飞艇' , value: '幸运飞艇'},
                    {name: '广东11选5' , value: '广东11选5'},
                    {name: '广东快乐十分' , value: '广东快乐十分'},
                    {name: '新疆时时彩' , value: '新疆时时彩'},
                    {name: '江苏快3' , value: '江苏快3'},
                    {name: '江西11选5' , value: '江西11选5'},
                    {name: '重庆幸运农场' , value: '重庆幸运农场'},
                    {name: '重庆时时彩' , value: '重庆时时彩'},
                ],
                params: '',
                filterdate: '',
                rednumber: ['01','02','07','08','12','13','18','19','23','24','29','30','34','35','40','45','46'],
                bluenumber: ['03','04','09','10','14','15','20','25','26','31','36','37','41','42','47','48'],
                greennumber: ['05','06','11','16','17','21','22','27','28','32','33','38','39','43','44','49'],
                totalList: [],
            }
        },
        computed: {
            
        },
        methods: {
            paramsFun(){
                this.params = lotterytype.apiParams(this.$route.query.id,this.$route.query.levelid);
                this.game = this.params.nowlottery;
                //默认日期  今天
                var date = new Date();
                var year = date.getFullYear();
                var month = date.getMonth() + 1;
                var day = date.getDate();
                if (month < 10) {
                    month = "0" + month;
                }
                if (day < 10) {
                    day = "0" + day;
                }
                var nowDate = year + "-" + month + "-" + day;

                this.filterdate = nowDate;
            },
            init(){

                var _this = this;
                if(window.localStorage.Authorization){

                    this.$httpGet('/api/game/moreResults/'+ this.game + '/' + this.filterdate.substr(0,4) + this.filterdate.substr(5,2) + this.filterdate.substr(8,2)).then(response => {
                        
                        if(response.status == 200){

                            _this.infoData = response.data;
                            _this.totalList = [];
                            if(_this.game == '六合彩' || _this.game == '北京快乐8' || _this.game == '天津时时彩' || _this.game == '新疆时时彩' || _this.game == '重庆时时彩' || _this.game == '山东11选5' || _this.game == '广东11选5' || _this.game == '江西11选5' || _this.game == '广东快乐十分' || _this.game == '重庆幸运农场'){
                                for(var i = 0; i<_this.infoData.length; i++){
                                    //计算总数
                                    if(_this.infoData[i].balls){
                                        var total = 0;
                                        for(var j = 0; j<_this.infoData[i].balls.length; j++){
                                            total += parseInt(_this.infoData[i].balls[j]);
                                        }
                                        _this.totalList.push(total);
                                    }else{
                                        _this.totalList.push(0);
                                    }
                                    //时间戳转日期
                                    var date = new Date(parseInt(_this.infoData[i].close) * 1000);
                                    var Y = date.getFullYear();
                                    var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1);
                                    var D = date.getDate();
                                    var h = date.getHours();
                                    var m = date.getMinutes();
                                    var s = date.getSeconds();
                                    _this.infoData[i].close = Y + '-' + M + '-' + _this.add0(D) + ' ' + _this.add0(h) + ':' + _this.add0(m) + ':' + _this.add0(s);
                                }
                            }else if(_this.game == 'PC蛋蛋' || _this.game == '北京PK拾' || _this.game == '幸运飞艇' || _this.game == '安徽快3' || _this.game == '江苏快3'){

                                for(var i = 0; i<_this.infoData.length; i++){
                                    //时间戳转日期
                                    var date = new Date(parseInt(_this.infoData[i].close) * 1000);
                                    var Y = date.getFullYear();
                                    var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1);
                                    var D = date.getDate();
                                    var h = date.getHours();
                                    var m = date.getMinutes();
                                    var s = date.getSeconds();
                                    _this.infoData[i].close = Y + '-' + M + '-' + _this.add0(D) + ' ' + _this.add0(h) + ':' + _this.add0(m) + ':' + _this.add0(s);
                                }
                            }
                        }

                    });
                }
                

            },
            //add 0
            add0(num){
                if(num < 10){
                    num = '0'+num;
                }
                return num;
            },
            //切换游戏
            selchange(event){
                
                this.game = event.target.value;
                this.init();
            },
            //change  日期
            changeDate(){
                this.init();
            },
            
        },
        mounted(){
            this.paramsFun();
            this.init();
        },
        watch: {
            openBet: function(now,old){
                // console.log(now,old);
                //开奖  刷新路珠数据
                this.init();
                
            },
            ninetime: function(now,old){
                console.log('------------90s  账户信息');
                //90s  刷新数据
                this.init();
            },

        },
    }
</script>
